package highproc

func Every[T any](vals []T, predicate func(s T) bool) bool {
	if vals == nil {
		return true
	}
	for _, p := range vals {
		if !predicate(p) {
			return false
		}
	}
	return true
}
